<template>
    <div  class="dashboard-toolbar"  @click="resetLayout">
         重置布局
     </div>
</template>
<script>
import _ from "lodash";
import defaultLayout from "./defaultLayout";
export default {

methods: {
      resetLayout() {
        this.$emit('layouts')
     
    },
        // 保存布局到localStorage
    saveLayoutToStorage() {
      try {
        localStorage.setItem(this.layoutStorageKey, JSON.stringify(this.layout));
        console.log('布局已保存到缓存');
      } catch (error) {
        console.error('保存布局失败:', error);
      }
    },
  }
}

 

</script>
<style scoped lang="scss"></style>